package com.it.mybatis.query;

import lombok.Data;

/**
 * @Author LHN
 * @ClassName CompanyQuery
 * @Date 2021/10/23
 * @Description }
 */
@Data
public class CompanyQuery {
    private String companyName;

    private String address;

    private String resPeopleName;

    // 当前页
    private Integer currentPage = 1;

    public Integer getPageSize() {
        return pageSize;
    }

    // 每页展示条数
    private Integer pageSize = 5;

    //根据参数分页,每页开始的下标
    public Integer getBeginPage(){
        return (currentPage-1)*pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }
}
